common/domain_page: Drop domain_mmap_cache infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Jul 2017 09:18:02 +0000 (10:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 Aug 2017 11:02:32 +0000 (12:02 +0100)
commita19faa0100708c70a179eb5cf23a7b7789dab5e3
tree5f6e8832e423f685680e16a515c37956d198c2e6
parentd73168728c49a21da88989e548f01c5947a5b538
common/domain_page: Drop domain_mmap_cache infrastructure

This infrastructure is used exclusively by the x86 do_mmu_update() hypercall.
Mapping and unmapping domain pages is probably not the slow part of that
function, but even with an opencoded caching implementation, Bloat-o-meter
reports:

  function                                     old     new   delta
  do_mmu_update                               6815    6573    -242

The !CONFIG_DOMAIN_PAGE stub code has a mismatch between mapping and
unmapping, which is a latent bug.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
xen/include/xen/domain_page.h